package com.changgou.item.controller;

import com.changgou.entity.Result;
import com.changgou.entity.StatusCode;
import com.changgou.goods.feign.CategoryFeign;
import com.changgou.item.service.ItemService;
import com.changgou.pojo.Category;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * 老大哥在看着你
 *
 * @author ANG.YU
 * @date 2019-10-14 19:10
 */
@RestController
@RequestMapping("/item")
public class ItemController {
    @Autowired
    private ItemService itemService;

    @GetMapping("/staticPage/{id}")
    public Result staticPage(@PathVariable(name = "id") String id) {
        itemService.staticPage(id);
        return new Result(true, StatusCode.OK, "静态化成功");
    }
}
